﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="advertisement_save.aspx.cs"
    Inherits="TRPOP.CMS.Web.Admin.advertisement_save" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>广告信息保存-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <script src="../../js/ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../../js/ckeditor/adapters/jquery.js" type="text/javascript"></script>
    <script src="../js/advertisement_save.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return CheckForm(this);">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：广告管理 ->
                <%=m_Title%>
            </td>
        </tr>
    </table>
    <table class="table_form">
        <tbody>
            <tr class="tr_title">
                <th colspan="2">
                    基本设置
                </th>
            </tr>
            <tr class="tr_item">
                <th>
                    广告名称
                </th>
                <td>
                    <cms:TextBox ID="txtName" runat="server" ControlValueType="String" required="1" prompt="名称"></cms:TextBox>
                    <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过200个字符！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th width="20%">
                    广告内容
                </th>
                <td>
                    <cms:TextBox ID="txtDetail" runat="server" TextMode="MultiLine" prompt="广告内容" ControlValueType="String"></cms:TextBox>
                    <span class="sp_tiptitle">广告点击统计地址: [$AdvertisementSkip]</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    广告跳转地址
                </th>
                <td>
                    <cms:TextBox ID="txtRedirect" runat="server" ControlValueType="String" MaxLength="300"
                        required="1" prompt="广告跳转地址"></cms:TextBox>
                    <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过300个字符！</span>
                </td>
            </tr>
            <tr class="tr_item" runat="server" id="trHits" visible="false">
                <th>
                    点击统计
                </th>
                <td>
                    <cms:TextBox runat="server" ID="txtHits" Width="100" Enabled="false" />
                    <a href="advertisement_hits.aspx?adid=<%=mAdvscontentInfo.AdID %>">查看详细</a>
                </td>
            </tr>
            <tr class="tr_title">
                <th colspan="2">
                    高级设置
                </th>
            </tr>
            <tr class="tr_item">
                <th>
                    生成文件名
                </th>
                <td>
                    <cms:TextBox ID="txtPageName" runat="server" valuetype="EnKong" ControlValueType="String"
                        required="1" prompt="生成文件名" MaxLength="100"></cms:TextBox>
                    <span class="FontWarn">*</span><span class="sp_tiptitle">只能是字母和数字！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    模式
                </th>
                <td>
                    <cms:RadioButtonList ID="rbtShowModel" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">静态</asp:ListItem>
                        <asp:ListItem Value="1">动态</asp:ListItem>
                    </cms:RadioButtonList>
                    <span class="sp_tiptitle">说明：静态模式系统将生成js文件，动态模式系统将动态输出js</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    到期时间
                </th>
                <td>
                    <cms:TextBox runat="server" ID="txtMaturityTime" ToolTip="到期时间" onclick="javascript:return new Calendar.display(this.id,event);"
                        Width="100px" />
                    <cms:DropDownList runat="server" ID="ddlHour" />
                    时
                    <cms:DropDownList runat="server" ID="ddlMinute" />
                    分
                    <cms:DropDownList runat="server" ID="ddlSecond" />
                    秒
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    是否有效
                </th>
                <td>
                    <cms:RadioButtonList ID="rbtIsValid" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="1">有效</asp:ListItem>
                        <asp:ListItem Value="0">无效</asp:ListItem>
                    </cms:RadioButtonList>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                </th>
                <td>
                    <cms:Button CssClass="button_style" ID="btnSubmit" Text="保存" runat="server" OnClick="btnSubmit_Click" />
                    <input class="button_style" name="reset" onclick="window.location.href='<%=m_strRefer%>'"
                        value="返回" type="reset">
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
